﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace JESAI.Redis.Abstracts.RedisClients
{
    public interface IRedisClientFactory
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="disposeTask"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task<IRedisClient> GetAsync(Action<IRedisClient> disposeTask, CancellationToken cancellationToken = default);
    }
}
